﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Benefit.Models.ServerData;
namespace Benefit.Interface.ServerData
{
    /// <summary>
    /// 结算资金
    /// </summary>
    public interface IT_SettlementMoney
    {
       
        /// <summary>
        /// 查询结算后的资金情况
        /// </summary>
        /// <param name="accountid"></param>
        /// <param name="pdate"></param>
        /// <returns></returns>
        System.Collections.Generic.List<T_SettlementMoney> GetInfo(string pdate);

        /// <summary>
        /// 查询某天最大结算编号的资金记录
        /// </summary>
        /// <param name="settlementid">结算编号</param>
        /// <param name="pdate">日期</param>
        /// <returns></returns>
        System.Collections.Generic.List<T_SettlementMoney> GetSettleMoneyInfo(int settlementid, string pdate);

        /// <summary>
        /// 每天都需要执行的把Server中的数据导入到分析系统中的方法
        /// </summary>
        /// <param name="pdate">日期</param>
        void CopyServerSettlementMoneyDataIntoBenefit(string pdate);

        /// <summary>
        /// 删除某日的所有持仓明细记录
        /// </summary>
        /// <param name="pdate"></param>
        void DeleteDaySettlementMoneyFromBenefit(string pdate);
        /// <summary>
        /// 得到某日的某账号的结算信息
        /// </summary>
        /// <param name="accountid"></param>
        /// <param name="pdate"></param>
        /// <returns></returns>
        T_SettlementMoney GetSettlementMoney(int accountid, string pdate);
        /// <summary>
        /// 获取收益的涨幅
        /// </summary>
        /// <param name="accountid"></param>
        /// <param name="pdate"></param>
        /// <returns></returns>
        double GetRaiseRate(int accountid, string pdate);
    }
}